package com.xbongbong.saas.domain.entity;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 产品库存
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/6/7 13:58
 * @since v1.0
 */
@Getter
@Setter
public class ProductStockEntity implements Serializable {

    private static final long serialVersionUID = -3511797581995506299L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 父产品id
     */
    private Long parentId;
    /**
     * 子产品id
     */
    private Long productId;
    /**
     * 仓库
     */
    private Long warehouseId;
    /**
     * 仓库
     */
    private String warehouseName;
    /**
     * 批次
     */
    private String batch;
    /**
     * 数量
     */
    private Double num;
    /**
     * 生产日期
     */
    private Long produceDate;
    /**
     * 保质期（秒）
     */
    private Long guaranteePeriod;
    /**
     * 到期日期（秒）
     */
    private Long expireDate;
    /**
     * 添加时间
     */
    private Long addTime;
    /**
     *
     * 更新时间
     *
     */
    private Long updateTime;
    /**
     * 删除标志
     */
    private Integer del;
    /**
     * 是否被勾选
     */
    private Integer warehouseChecked;

    /**
     * 成本
     */
    private Double cost;
    /**
     * 总成本
     */
    private Double totalCost;
    /**
     * 批次唯一key
     */
    private String batchKey;


    /**
     * 用于转换数量
     */
    private Double transferNum;

    /**
     * warehouseKey
     */
    private String warehouseKey;

    public ProductStockEntity() {
        this.warehouseChecked = 1;
        this.guaranteePeriod = 0L;
        this.produceDate = 0L;
    }

    private Long leftTime;
}
